package com.woniuxy.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "User", description = "用户信息")
public class User implements Serializable {

    @ApiModelProperty(value = "[自动增长]用户主键")
    private Integer id;

    @ApiModelProperty(value = "[必填项]用户名")
    private String lname;

    @ApiModelProperty(value = "[必填项]密码")
    private String lpass;

    @ApiModelProperty(value = "[必填项]真实姓名")
    private String rname;

    private int age;

    @ApiModelProperty(value = "[必填项]性别")
    private String gender;

    @ApiModelProperty(value = "[必填项]地址")
    private String address;

    @ApiModelProperty(value = "[必填项]手机号")
    private String phone;

    @ApiModelProperty(value = "[必填项]部门")
    private Dictionary dept;

    @ApiModelProperty(value = "[必填项]职位")
    private Dictionary post;

    private Date birthday;

    @ApiModelProperty(value = "[必填项]身份证")
    private String card;

    @ApiModelProperty(value = "[必填项]入职时间")
    private Date entryTime;

    @ApiModelProperty(value = "[必填项]是否停用")
    private int isDisable;

    private List<Role> roles;

}
